import config from "@/config"
import http from "@/utils/request"

export default {
  userDetail: {
    url: `${config.API_URL}/cms/creator/info`,
    name: "获取用户详情",
    get: async function(){
      return await http.get(this.url)
    }
  },
  userUpload: {
    url: `${config.API_URL}/cms/creator/update`,
    name: "上传用户信息",
    post: async function(data){
      return await http.post(this.url,data)
    }
  }
}